/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.agh.student.logic.util;

import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import org.jbpm.api.ExecutionService;
import org.jbpm.api.HistoryService;
import org.jbpm.api.IdentityService;
import org.jbpm.api.TaskService;

/**
 *
 * @author janburkot
 */
public class ServiceProviderImpl implements ServiceProvider {
    private IdentityService identityService;
    private ExecutionService executionService;
    private TaskService taskService;
    private HistoryService historyService;

    public IdentityService getIdentityService() {
        return identityService;
    }

    public void setIdentityService(IdentityService identityService) {
        this.identityService = identityService;
    }

    public ExecutionService getExecutionService() {
        return executionService;
    }

    public void setExecutionService(ExecutionService executionService) {
        this.executionService = executionService;
    }

    public TaskService getTaskService() {
        return taskService;
    }

    public void setTaskService(TaskService taskService) {
        System.out.println("==========SETTaskService===========");
        this.taskService = taskService;
    }

    public List<String> toList(Set<String> set) {
        List<String> l = new LinkedList<String>();
        
        for(String s: set){
            l.add(s);
        }
        System.out.println(l);
        return l;
    }

    public HistoryService getHistoryService() {
        return historyService;
    }

    public void setHistoryService(HistoryService historyService) {
        System.out.println("==========SETHistoryService===========");
        System.out.println(historyService);
        this.historyService = historyService;
    }
    
}
